config BR2_PACKAGE_CPPCMS
	bool "cppcms"
	depends on BR2_INSTALL_LIBSTDCPP
	depends on BR2_PACKAGE_LIBGPG_ERROR_ARCH_SUPPORTS # libgcrypt
	depends on BR2_TOOLCHAIN_HAS_THREADS_NPTL
	depends on !BR2_STATIC_LIBS # dlopen()
	depends on BR2_USE_WCHAR
	select BR2_PACKAGE_ZLIB
	select BR2_PACKAGE_PCRE
	select BR2_PACKAGE_LIBGCRYPT
	help
	  CppCMS is a Free High Performance Web Development Framework
	  (not a CMS) aimed for Rapid Web Application Development. It
	  differs from most of other web development frameworks like:
	  Python Django or Java Servlets on  the following aspects:

	   - It is designed and tuned to handle extremely high loads.
	   - It uses modern C++ as primary development language in
	     order to achieve the above goal.
	   - It is aimed on development of both Web Sites and Web
	     Services.

	  http://cppcms.com

if BR2_PACKAGE_CPPCMS

config BR2_PACKAGE_CPPCMS_ICU
	bool "enable icu support"
	depends on !BR2_BINFMT_FLAT # icu
	depends on BR2_HOST_GCC_AT_LEAST_4_8 # icu
	depends on BR2_TOOLCHAIN_GCC_AT_LEAST_4_8 # icu
	select BR2_PACKAGE_ICU
	help
	  Using ICU allows advanced localization features into CppCMS,
	  in another hand ICU is heavier than iconv.

comment "icu support needs a toolchain w/ gcc >= 4.8, host gcc >= 4.8"
	depends on !BR2_BINFMT_FLAT
	depends on !BR2_HOST_GCC_AT_LEAST_4_8 || !BR2_TOOLCHAIN_GCC_AT_LEAST_4_8

endif

comment "cppcms needs a toolchain w/ C++, NPTL, wchar, dynamic library"
	depends on !BR2_INSTALL_LIBSTDCPP || !BR2_TOOLCHAIN_HAS_THREADS_NPTL || \
		!BR2_USE_WCHAR || BR2_STATIC_LIBS
